import request from '@/utils/request'

// 查询我的捐献记录列表
export function listMy_donations(query) {
  return request({
    url: '/app/my_donations/list',
    method: 'get',
    params: query
  })
}

// 查询我的捐献记录详细
export function getMy_donations(mydonationsId) {
  return request({
    url: '/app/my_donations/' + mydonationsId,
    method: 'get'
  })
}

// 新增我的捐献记录
export function addMy_donations(data) {
  return request({
    url: '/app/my_donations',
    method: 'post',
    data: data
  })
}

// 修改我的捐献记录
export function updateMy_donations(data) {
  return request({
    url: '/app/my_donations',
    method: 'put',
    data: data
  })
}

// 删除我的捐献记录
export function delMy_donations(mydonationsId) {
  return request({
    url: '/app/my_donations/' + mydonationsId,
    method: 'delete'
  })
}
